// $Id: WorkflowPerspective.java 89 2012-03-31 10:43:58Z huijzer@gmail.com $
package lime.workflow;

import lime.browser.view.AttributesView;
import lime.workflow.view.AttachmentsView;
import lime.workflow.view.ErrorView;
import lime.workflow.view.FilterView;
import lime.workflow.view.PackagesView;
import lime.workflow.view.VariablesView;
import lime.workflow.view.WorkflowHistoryView;
import lime.workflow.view.WorkitemView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class WorkflowPerspective implements IPerspectiveFactory {

	public static final String ID = "lime.workflow.perspective";

	@Override
	public void createInitialLayout(IPageLayout layout) {

		layout.setEditorAreaVisible(false);
		layout.setFixed(false);

		layout.addView(WorkitemView.ID, IPageLayout.LEFT, 1.0f, IPageLayout.ID_EDITOR_AREA);

		IFolderLayout folder = layout.createFolder("folder", IPageLayout.BOTTOM, 0.7f, WorkitemView.ID);
		folder.addView(VariablesView.ID);
		folder.addView(PackagesView.ID);
		folder.addView(AttachmentsView.ID);
		folder.addView(WorkflowHistoryView.ID);
		folder.addView(ErrorView.ID);

		layout.addView(FilterView.ID, IPageLayout.RIGHT, 0.8f, WorkitemView.ID);
		
		layout.addView(AttributesView.ID, IPageLayout.RIGHT, 0.5f, "folder");
	}

}
